<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员管理-有点</title>
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/css.css">
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/pageGroup.css">



	<script type="text/javascript" src="<?php echo Url::base(); ?>/resource/jquery.js"></script>

<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>
<body>

	<form id="form" name="form" method="post" action="<?php echo Url::base(); ?>index.php/productskum/add">

		<?php
			foreach($data as $key => $value){
?>

				<input type="hidden" name="skuExpress[]" value="<?php echo $value['showid'];?>"/>
		<?php
				if($value['model1'] !=""){
					echo  '<input type="text" name="model1" value="'.$value['model1'].'" readonly/>';
				}
				if($value['model2'] !=""){
					echo '<input type="text" name="model2" value="'.$value['model2'].'" readonly/>';
				}
				if($value['model3'] !=""){
					echo '<input type="text" name="model3" value="'.$value['model3'].'" readonly/>';
				}

				echo  '设置快递库存<input type="text" name="sku[]" value="'. $value['number'].'"/>';
				echo  '设置规格价格<input type="text" name="price[]" value="'. $value['price'].'"/>';
				echo '请选择设定门店自提<input type="radio"  name="id[]" value="'. $value['showid'].'"/>';
				echo '<br>';
			}
		?>
		<input type="hidden" name="productId" value="<?php echo $_REQUEST['id'];?>"/>
		<input type="hidden" id="type" name="type" value="">
		<input type="button" onclick="add(1)" value="设置门店库存"/>
		<input type="button"  onclick="add(2)" value="提交"/>
	</form>

<script type="application/javascript">


function add(type){
	if(type ==1){
		$("#type").val(type);
	}else if(type == 2){
		$("#type").val(type);
	}
	document.form.submit()
}
</script>
</body></html>